<!DOCTYPE html>
<!-- saved from url=(0036)http://1618.com/Home/Center/pwd.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人中心</title>

<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

<include file="./Public/public/public.html" />

<script>
$(document).ready(function(){
    //点击修改登录密码
    $('[action="changePwd"]').click(function(){
        $('[popup="changePwd"]').find("#popupTitle").html($(this).attr("popupTitle"));
        $('[popup="changePwd"]').reveal();
    	$("#ischeck").val("loginpasswd");
    });     

    //点击修改支付密码
    $('[action="changeAuth"]').click(function(){
    	$('[popup="changePwd"]').find("#popupTitle").html($(this).attr("popupTitle"));
        $('[popup="changePwd"]').reveal();
    	$("#ischeck").val("transpasswd");
    });    
    //点击确认
    $('[action="confirm"]').click(function(){
        $(this).parents('form').Qsubmit();
    }); 

    $('#transaction_verify_type').change(function () {
        if ($(this).val() == 1) {
            showConfirm({
                msg:'交易验证方式改为使用密码会降低的交易安全,您确认更改？',
                confirmed:function(){
                    $('#frm_switch').Qsubmit();
                }
            })
        } else {
            $('#frm_switch').Qsubmit();
        }
    });
    
    $('[action="closeModal"]').click(function(){
    	$("#smscode").val("");
    	$("#pass0").val("");
    	$("#pass1").val("");

     });
});
</script>

</head>
<body>
<!--pc头部-->
<include file="./Public/public/top.html" />
<!--pc头部结束-->
<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
    	<include file="./Public/public/centerLeft.html" />
    
<!--  修改密码 -->
<div popup="changePwd" class="reveal-modal medium">
    <a class="close-reveal-modal" action="closeModal">×</a>
    <h3 id="popupTitle">修改登录密码</h3>
    <div>
    <form method="post" action="{:U('User/updatePasswd')}">
        <input  id="ischeck" type="hidden" name="changeType" value="loginpasswd">
	    <div class="form-row form-row-s mt20">
	        <div class="input-name w30">验证码</div>
	        <div class="input-box w65">
		        <input id="smscode" name="code" type="tel" 
		        valid="{'required':true,'number':true,'limitLength':6}" 
		        msg="{'required':'请填写6位数字验证码','number':'请填写6位数字验证码','limitLength':'请填写6位数字验证码'}" 
		        class="input-s" placeholder="6位数字验证码">
	        </div>
	        <div class="clr"></div>
	    </div> 

    	<div class="form-row form-row-s">
        <div class="input-name w30"></div>
        <div class="input-name w65">
            <input type="hidden" id="sendMobileUrl" value="{:U('HomeBase/sendMobileMes')}" />
            <input type="hidden" id="sendEmailUrl" value="{:U('HomeBase/sendEmailMes')}" />
            <input type="hidden"  id="mobile"  value="{$user.mobile}">
            <input type="hidden"  id="email"  value="{$user.email}">
            <input type="hidden"  id="messType"  value="">
            <div id="sendMObileMess" watch="mobile" name="changepwd" 
						method="mobile" emsg="请输入正确的手机号"
						token="12ad2b693c60403ad9169f6c5f4bc042" 
						left="0" class="timer w40 fl" >手机获取</div>
            <div id="sendEmailMess" watch="email" name="changepwd" 
						method="email" emsg="请输入正确的邮箱地址"
						token="12ad2b693c60403ad9169f6c5f4bc042" 
						left="0" class="timer w40 fl ml10" >邮箱获取</div>
	        <div class="clr"></div>
        </div>
        <div class="clr"></div>
    </div>     
    <div class="form-row form-row-s">
        <div class="input-name w30" id="fieldName">新密码</div>
        <div class="input-box w65">
        	<input id="pass0" type="password" class="input-s" name="pass" placeholder="8-20位大小写字母加数字组合" 
        	onpaste="return false" oncopy="return false;" oncut="return false;" maxlength="20" 
        	valid="{'required':true,'minLength':8,'maxLength':20}" 
        	msg="{'required':'请填写8-20位密码','minLength':'请填写8-20位密码','maxLength':'请填写8-20位密码,建议数字字母大小写组合'}">        
        </div>
        <div class="clr"></div>
    </div>      
    <div class="form-row form-row-s">
        <div class="input-name w30" id="fieldName">确认新密码</div>
        <div class="input-box w65">
        	<input id="pass1" type="password" class="input-s" placeholder="8-20位大小写字母加数字组合" 
        	onpaste="return false" oncopy="return false;" oncut="return false;" maxlength="20" 
        	valid="{'required':true,'equalTo':'[name=pass]'}" 
        	msg="{'required':'请确认新密码','equalTo':'输入的确认密码不一致'}">        
        </div>
        <div class="clr"></div>
    </div> 
    <div class="split-dot mb20 mt20 text-center"></div>
    <div class="form-row form-row-s">
        <a action="confirm" class=" button button-blue w45 fl">确认</a>
        <a action="cancel" class=" button button-gray w45 fr">取消</a>
        <div class="clr"></div>
    </div>
    </form>
    </div>
</div>

            <div class="right" style="min-height: 882px;">
                <h3>密码设置</h3>
<!--                <div class="cnt-tips">
                  <p>温馨提示：兑入和兑出域名时，根据域名所在的注册商，需要绑定您在该注册商下的会员ID进行，以便与平台进行push。</p>
                </div>   -->
                <div class="split-dot mt10 mb10"></div>
                <div class="row">
                  <div class="key w55"><i class="fa fa-lock"></i>登录密码</div>
                  <div class="value w30">
                  <a action="changePwd" popuptitle="修改登录密码">修改</a> 
                  </div>
                  <div class="clr"> </div>
                </div>
                <div class="row">
                  <div class="key w55">
                  <i class="fa fa-lock"></i>交易密码</div>
                  <div class="value w30">
                  	<if condition="$user.transpasswd eq null">
              			<a action="changeAuth" popuptitle="设置支付密码">未设置</a>
                	  <else/>
                	  	<a action="changeAuth" popuptitle="修改付密码">修改</a> 
		   		    </if>
                  </div>
                  <div class="clr"> </div>
                </div>
                <div class="row">
                    <div class="key w55"><i class="fa fa-exchange"></i>交易验证方式</div>
                    <div class="value w40">交易密码</div>
                    <div class="clr"> </div>
                </div>
        </div>
        <div class="clr"></div>
    </div>
</div>
<script type="text/javascript" src="{$app_path}{$static_path}/js/common.js"></script>
<include file="./Public/public/footer.html" />
</body></html>